@extends('layouts.default');
@section('content')
    <form action="{{route('user.update',$user)}}" method="post">
        @csrf
        @method('PUT')
        <div class="card">
            <div class="card-header">修改资料</div>
            <div class="card-body">
                <div class="form-group">
                    <label for="">昵称</label>
                    <input type="text" name="name" value="{{$user->name}}" class="form-control" placeholder="请输入你的昵称" aria-describedby="helpId">
                    <small id="helpId" class="text-muted">至少4个字符</small>
                </div>
                <div class="form-group">
                    <label for="">密码</label>
                    <input type="password" name="password" id="" class="form-control">
                </div>
                <div class="form-group">
                    <label for="">确认密码</label>
                    <input type="password" name="password_confirmation" id="" class="form-control">
                </div>
            </div>
            <div class="card-footer">
                <button type="submit" class="btn btn-success">确认修改</button>
            </div>
        </div>
    </form>
@stop
